package com.xzp.mapper;

import com.xzp.domain.Group;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface GroupMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Group record);

    int insertSelective(Group record);

    Group selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Group record);

    int updateByPrimaryKey(Group record);

    /**
     * 创建新组
     *
     * @param group 组对象
     * @return 1 创建成功 0 失败
     */
    int insertGroup(@Param("group") Group group);

    /**
     * @param groupName
     * @return
     */
    List<Group> findByGroupName(@Param("groupName") String groupName);
}